// Change service config parameters at runtime laravel You can set config values dynamically at runtime with config() helper: config(['services.mailgun' => $arrayWithNewSettings]);